package demo2;


public class Bird extends Animal implements IFLY,IRUN{

    public Bird(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(this.name+"正在吃虫子.......");
    }

    @Override
    public void fly() {
        System.out.println(this.name+"正在天空翱翔............");
    }

    @Override
    public void run() {
        System.out.println(this.name+"正在地上跑.........");
    }
}
